﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ExpenseTracker.Entity;

namespace ExpenseTracker
{
    public enum FormAction
    {
        Create = 1,
        Update = 2,
        Delete = 4
    }

    public partial class BaseForm : Form
    {
        private ExpenseTracker.Entity.Account _account;

        private BaseForm() { }

        public BaseForm(ExpenseTracker.Entity.Account account)
        {
            _account = account;
            InitializeComponent();
        }

        public FormAction FormAction { set; get; }

        protected ExpenseTracker.Entity.Account Account
        {
            get { return _account; }
        }
    }
}
